package com.company.project.jersey.config;

import com.company.project.jersey.service.InterfaceServer;
import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
import org.glassfish.jersey.filter.LoggingFilter;
import org.glassfish.jersey.server.ResourceConfig;

/**
 * Author: songzhonglin
 * Date: 2018/4/12
 * Time: 8:55
 * Description: 注册服务
 **/
public class JerseyApplication extends ResourceConfig {
    public JerseyApplication() {
        //加载Resource

        register(InterfaceServer.class) ;

        //注册数据转换器
        register(JacksonJsonProvider.class);
        // Logging.
        register(LoggingFilter.class);

    }
}
